<?php if (!defined('THINK_PATH')) exit();?><form id="pagerForm" method="post" action="<?php echo U();?>"> 
    <input type="hidden" name="pageNum" value="<?php echo ($_REQUEST["pageNum"]); ?>" />
    <input type="hidden" name="numPerPage" value="<?php echo ($_REQUEST["numPerPage"]); ?>" /> 
    <input type="hidden" name="_order" value="<?php echo ($_REQUEST["_order"]); ?>" />
    <input type="hidden" name="_sort" value="<?php echo ($_REQUEST["_sort"]); ?>" />    
</form>


<div class="pageHeader">
    <?php if(($act) == "1"): ?><form rel="pagerForm" onsubmit="return navTabSearch(this);" action="/tuyouApp/resume/index" method="post">
    <?php else: ?>
        <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="/tuyouApp/resume/auditResume" method="post"><?php endif; ?>
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>
                        名称：<input type="text" name="name" value=''/>
                    </td>
                    <td>
                        用户：<input type="text" name="nickName" value=''/>
                    </td>
                    <td>
                        地区：
                        <select name="regionId">
                            <option value="">请选择</option>
                            <?php if(is_array($regList)): foreach($regList as $key=>$regList): ?><option value="<?php echo ($regList["id"]); ?>"><?php echo ($regList["name"]); ?></option><?php endforeach; endif; ?>                        
                        </select>
                    </td>
                </tr>
            </table>		
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <?php if(($_SESSION['type']) > "1"): ?><li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="/tuyouApp/resume/del" class="delete"><span>批量删除</span></a></li>                  
                <?php if(($act) == "2"): ?><li><a title="确实审核这些记录吗?" target="selectedTodo" rel="id[]" postType="string" href="/tuyouApp/resume/alledit" class="add"><span>批量审核</span></a></li>
                <?php else: ?>
                    <li><a title="确实设为待审核吗?" target="selectedTodo" rel="id[]" postType="string" href="/tuyouApp/resume/audit" class="add"><span>批量待审</span></a></li><?php endif; ?>
                <!--
                <li><a class="edit" href="/tuyouApp/resume/show/id/{buy_id}" target="dialog" mask="true" warn="请选择一条信息" width="600" height="600"><span>修改</span></a></li>
                -->
                <li class="line">line</li><?php endif; ?>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="138">
        <thead>
            <tr>                
                <?php if(($_SESSION['type']) > "1"): ?><th width="22"><input type="checkbox" group="id[]" class="checkboxCtrl"></th><?php endif; ?>
                <th width="40"  align="center">序号</th>
                <th width="120" align="center">简历名称</th>
                <th width="80" align="center">用户</th>
                <th width="50" align="center">性别</th>
                <th width="50" align="center">年龄</th>
                <th width="100" align="center">城市</th>
                <th width="110" align="center">电话</th>
                <th width="150" align="center">邮箱</th>
                <th width="100" align="center">期望薪资</th>
                <th width="50" align="center">经验</th>
                <th width="200" align="center">地址</th>
                <th width="130" align="center">投递时间</th>
                <?php if(($_SESSION['type']) > "1"): ?><th width="110" align="center">操作</th><?php endif; ?>
            </tr>
        </thead>
        <tbody>
            <?php $i=1;?> 
            <?php if(is_array($resumeList)): foreach($resumeList as $key=>$list): ?><tr target="buy_id" rel="<?php echo ($list["id"]); ?>">
                <?php if(($_SESSION['type']) > "1"): ?><td><input name="id[]" value="<?php echo ($list["id"]); ?>" type="checkbox"></td><?php endif; ?>
                <td><?php echo ($i); ?></td>
                <td><?php echo ($list["name"]); ?></td>
                <td><?php echo (getUserName($list["userid"])); ?></td>
                <td>
                    <?php if(($list['sex']) == "1"): ?>男<?php else: ?>女<?php endif; ?>
                </td>
                <td><?php echo ($list["age"]); ?></td>
                <td><?php echo (getRegion($list["cityid"])); ?></td>
                <td><?php echo ($list["tel"]); ?></td>
                <td><?php echo ($list["email"]); ?></td>
                <td><?php echo ($list["salary"]); ?></td>
                <td><a href="/tuyouApp/resume/show/id/<?php echo ($list["id"]); ?>" target="navTab" mask="true">查看</a></td>
                <td><?php echo ($list["address"]); ?></td>   
                <td><?php echo ($list["credate"]); ?></td>
                <?php if(($_SESSION['type']) > "1"): ?><td>                            
                        <?php if(($act) == "2"): ?><a title="确定审核" target="ajaxTodo" href="/tuyouApp/resume/alledit/id/<?php echo ($list["id"]); ?>" class="edit">审核 | </a> 
                            <a title="删除" target="ajaxTodo" href="/tuyouApp/resume/del/id/<?php echo ($list["id"]); ?>" >删除</a>
                        <?php else: ?>
                            <a title="设为待审核" target="ajaxTodo" href="/tuyouApp/resume/audit/id/<?php echo ($list["id"]); ?>" class="edit">待审核 | </a>
                            <a title="删除" target="ajaxTodo" href="/tuyouApp/resume/del/id/<?php echo ($list["id"]); ?>" >删除</a><?php endif; ?>                    
                    </td><?php endif; ?>
            </tr>
            <?php $i++; endforeach; endif; ?>
        </tbody>        
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共<?php echo ($totalCount); ?>条</span>          
        </div>
        <div class="pagination" targetType="navTab" totalCount="<?php echo ($totalCount); ?>" numPerPage="<?php echo ($numPerPage); ?>" pageNumShown="6"  currentPage="<?php echo ($currentPage); ?>"></div>
    </div>
</div>